package com.zjs.utils;

import lombok.extern.slf4j.Slf4j;

import java.util.Date;

/**
 * Id生成工具类
 *
 * @author zhu_jinsheng
 * @version 1.0
 * @date 2020/9/10 16:02
 */
@Slf4j
public class UuidUtil {

    /**
     * 生成
     * @return
     */
    public static String get32Uuid() {
        long randomNum = new Double(100000000000000001L +
                Math.random()*(999999999999999999L - 100000000000000001L + 1L)).longValue();
        return DateUtil.getDateString(new Date()) + randomNum;
    }
}
